package com.wonders.hisdoctor.station.project.hisqueue.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wonders.his.common.utils.validator.group.InsertGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author zhaogongming
 * @description
 * @date 2021-06-22
 **/
@ApiModel("传染病报卡查询vo")
@Data
public class ContagionQueryVo implements Serializable {

    /** db_field: PATIENT_ID; desc: 病人标识号 */
    @ApiModelProperty("病人标识号")
    @NotBlank(message = "病人标识号不能为空")
    private String patientId;

    /** db_field: VISIT_DATE; desc: 就诊时间 */
    @ApiModelProperty("就诊时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @NotNull(message = "就诊时间不能为空")
    private Date visitDate;

    /** db_field: VISIT_NO; desc: 就诊序号 */
    @ApiModelProperty("就诊序号")
    @NotNull(message = "就诊序号不能为空")
    private Integer visitNo;

    /** db_field: OPERTOR_ID; desc: 录入员 */
    @ApiModelProperty("录入员")
    @NotBlank(message = "录入员不能为空")
    private String opertorId;

    @ApiModelProperty("机构代码")
    @NotBlank(message = "机构不能为空")
    private String hospitalCode;

    /** db_field: INFEC_TYPE; desc: 报卡类别 */
    @ApiModelProperty("报卡类别 1-初次报告，2-订正报告")
    private String infecType;

}
